﻿@inherits LayoutComponentBase
@using BlazorApp4.UIThemeClasses;

<PageTitle>丁香</PageTitle>

<div class="page">
    <!-- <div class="sidebar">
        <NavMenu />
    </div> -->

    <main>
        <div class="top-row px-4">
            <a href="https://mp.weixin.qq.com/s?__biz=MzI1NjEyMzgxMw==&mid=2247485450&idx=1&sn=313380f574a7a46cef6e2e3901cfef47&chksm=ea2a3ec0dd5db7d65869ed57978e3fffcbd7f4b3544c2a53e0d585c5471f76f14231b2244153&token=479341827&lang=zh_CN#rd" target="_blank">半夏之夜的无情剑客</a>
        </div>

        <article class="content px-4">
            <CascadingValue Value="@theme">            
                @Body
            </CascadingValue>

        </article>

        <!--<button @onclick="ChangeToDarkTheme">Dark mode</button>-->
    </main>
</div>

@code {
    private ThemeInfo? theme = new() { ButtonClass = "btn-success" };

    private void ChangeToDarkTheme()
    {
        theme = new() { ButtonClass = "btn-darkmode-success" };
    }
}
